package com.bdzl.ecs.servicefeign;

import com.bdzl.ecs.config.FeignConfig;
import com.bdzl.pub.entity.data.FddCaEntDO;
import com.bdzl.pub.util.param.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@FeignClient(name="loanAdmin", configuration = FeignConfig.class,contextId = "FddCaEnt",url = "${feign.sys}:8001")
public interface FddCaEntFeignService {
    @ResponseBody
    @PostMapping("/bdzl/fddCaEnt/save")
    public R save(@RequestBody FddCaEntDO fddCaEnt);

    @ResponseBody
    @PostMapping("/bdzl/fddCaEnt/update")
    public R update(@RequestBody FddCaEntDO fddCaEnt);

    @ResponseBody
    @GetMapping("/bdzl/fddCaEnt/Bylist")
    public List<FddCaEntDO> Bylist(@SpringQueryMap Map<String, Object> params);

}
